package org.matchit.converter.text;

import org.springframework.core.convert.converter.Converter;

public class AppendTextConverter implements Converter<String, String> {
    private final String value;

    public AppendTextConverter(String value) {
        this.value = value;
    }

    public static AppendTextConverter appendText(String value) {
        return new AppendTextConverter(value);
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String convert(String source) {
        return source + value;
    }

}
